how to get the largest number in an array in javascript